<?php /* Smarty version 2.6.18, created on 2010-03-06 18:38:07
         compiled from newssp.tpl */ ?>

<div id="blanket" style="display:none;"></div>
<div id="receiptdetail" style="position:absolute;background-color:#fff;width:400px;z-index: 1002;display:none;">
</div>

<form name="mainForm" method="POST" id="mainForm">
	<input type="hidden" value="<?php echo $this->_tpl_vars['receiptValue']['supplier_org_id']; ?>
" name="supplier_org_id">
	<input type="hidden" value="<?php echo $this->_tpl_vars['receiptValue']['ssp_id']; ?>
" name="ssp_id">
	<input type="hidden" value="<?php echo $this->_tpl_vars['receiptValue']['receipt_id']; ?>
" name="receipt_id">
    	<h1>Supplier Performance</h1>
        <div class="blue">
        <table border="0" width="100%">
			<tr>
				<td>Supplier:</td>
				<td><input type="text" readonly value="<?php echo $this->_tpl_vars['receiptValue']['name']; ?>
"></td>
				<td>Dispatch Date:</td>
				<td><input type="text" readonly value="<?php echo $this->_tpl_vars['receiptValue']['date_receipt']; ?>
"></td>
				<td>Order Number:</td>
				<td><input type="text" readonly value="<?php echo $this->_tpl_vars['receiptValue']['po_no']; ?>
"></td>
			</tr>
        </table>
        </div>
           
            <div id="results">
				<p></p>
				<table border="0" width="100%" cellspacing ="1" style="background-color:lightgray">
					<tr height="5px"><td></td></tr>
					<tr>
						<td width="40%"  style="background-color:#fffff"></td>
						<td width="20%" style="background-color:lightgray" align="center">POOR</td>
						<td width="20%" style="background-color:lightgray" align="center">AVERAGE</td>
						<td width="20%" style="background-color:lightgray" align="center">GOOD</td>
					</tr>
					<tr  style="background-color:#ffffff">
						<td><strong>DOA:DOA for a specific batch exceeds Mortality<br>
						Allowance for MAC Certified Organism</strong>
						</td>
						<td align="center">Over 5 species batches exceed<br>DOA allowance</td>
						<td align="center">3 or 4 species batches exceed<br>DOA allowance</td>
						<td align="center">2 or less species batches exceed<br>DOA allowance</td>
					</tr>
					<tr style="background-color:#ffffff">
						<td>[Rating Tick One]</td>
						<td align="center"><input type="radio" name="doa" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['doa'] == 0): ?>checked<?php endif; ?> value="0"></TD>
						<td align="center"><input type="radio" name="doa" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['doa'] == 1): ?> checked<?php endif; ?> value="1"></TD>
						<td align="center"><input type="radio" name="doa" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['doa'] == 2): ?>checked<?php endif; ?>value="2"></TD>
					</tr>
					
					<tr style="background-color:lightgray">
						<td><strong>Unordered Organism: Supplier sent unordered (make weight)<br>
						organism without prior agreement</strong>
						</td>
						<td align="center">More than 1 organism</td>
						<td align="center">1 organism</td>
						<td align="center">0 organism</td>
					</tr>
					<tr style="background-color:lightgray">
						<td>[Rating Tick One]</td>
						<td align="center"><input type="radio" name="unordered" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['undordered_organism'] == 0): ?> checked<?php endif; ?> value="0"></TD>
						<td align="center"><input type="radio" name="unordered" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['undordered_organism'] == 1): ?> checked<?php endif; ?> value="1"></TD>
						<td align="center"><input type="radio" name="unordered" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['undordered_organism'] == 2): ?> checked<?php endif; ?> value="2"></TD>
					</tr>
					 
					<tr style="background-color:#ffffff">
						<td><strong>Size:Supplier Sent organisms of a size ordered</strong>
						</td>
						<td align="center">More than 1 organism</td>
						<td align="center">1 organism</td>
						<td align="center">0 organism</td>
					</tr>
					<tr style="background-color:#ffffff">
						<td>[Rating Tick One]</td>
						<td align="center"><input type="radio" name="size" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['size'] == 0): ?>checked<?php endif; ?> value="0"></TD>
						<td align="center"><input type="radio" name="size" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['size'] == 1): ?>checked<?php endif; ?> value="1"></TD>
						<td align="center"><input type="radio" name="size" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['size'] == 2): ?>checked<?php endif; ?> value="2"></TD>
					</tr>
					
					<tr style="background-color:lightgray">
						<td><strong>Water Quality</strong>
						</td>
						<td></td>
						<td></td>
						<td></td>
					</tr>
					<tr style="background-color:lightgray">
						<td>[Rating Tick One]</td>
						<td align="center"><input type="radio" name="water" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['water'] == 0): ?>checked<?php endif; ?> value="0"></TD>
						<td align="center"><input type="radio" name="water" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['water'] == 1): ?>checked<?php endif; ?> value="1"></TD>
						<td align="center"><input type="radio" name="water" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['water'] == 2): ?>checked<?php endif; ?> value="2"></TD>
					</tr>
					
					<tr style="background-color:#ffffff">
						<td><strong>Packing</strong>
						</td>
						<td></td>
						<td></td>
						<td></td>
					</tr>
					<tr style="background-color:#ffffff">
						<td>[Rating Tick One]</td>
						<td align="center"><input type="radio" name="packing" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['packing'] == 0): ?> checked<?php endif; ?> value="0"></TD>
						<td align="center"><input type="radio" name="packing" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['packing'] == 1): ?>checked<?php endif; ?> value="1"></TD>
						<td align="center"><input type="radio" name="packing" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['packing'] == 2): ?>checked<?php endif; ?> value="2"></TD>
					</tr>
					
					<tr style="background-color:lightgray">
						<td><strong>Overall: Overall evaluation of shipment</strong>
						</td>
						<td align="center">More than 1 Poor Categories</td>
						<td align="center">1 Poor Category</td>
						<td align="center">0 Poor Category</td>
					</tr>
					<tr style="background-color:lightgray">
						<td>[Rating Tick One]</td>
						<td align="center"><input type="radio" name="overall" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['overall'] == 0): ?>checked<?php endif; ?> value="0"></TD>
						<td align="center"><input type="radio" name="overall" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['overall'] == 1): ?>checked<?php endif; ?> value="1"></TD>
						<td align="center"><input type="radio" name="overall" <?php if ($this->_tpl_vars['receiptValue']['ssp_id']): ?>disabled<?php endif; ?> <?php if ($this->_tpl_vars['receiptValue']['overall'] == 2): ?>checked<?php endif; ?> value="2"></TD>
					</tr>
					<tr><td colspan="4"><div class="blue">
						<table border="0">
							<tr>
								<td>Comments</td>
								<td><textarea style="width:600px;height:50px" name="comments"><?php echo $this->_tpl_vars['receiptValue']['comments']; ?>
</textarea></td>
							</tr>
							
						</table>
					</div></td></tr>
					<?php if (! $this->_tpl_vars['receiptValue']['ssp_id']): ?> 
					<tr>
						<td><input type="button" value="Save" onclick="doajaxAction('/account/savessp/',1,'results',document.getElementById('mainForm'),true)"></td>
					</tr>
					<?php endif; ?>
				</table>
            </div>
</form>
